public class Test {
    public static void main(String[] args) {
        MyArrayList arrayList = new MyArrayList();
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        arrayList.add(4);

        System.out.println(arrayList.contains(10));
        System.out.println(arrayList.indexOf(1));
        System.out.println(arrayList.get(1));
        arrayList.remove(4);
        arrayList.display();


    }
}
